net.jxta.util
Interface PipeEventListener
- All Superinterfaces:
- EventListener
- public interface PipeEventListener
- extends EventListener
The listener interface for receiving JxtaBiDiPipe
events.
The following example illustrates how to implement a PipeEventListener
:
PipeEventListener myListener = new PipeEventListener() {
public void pipeEvent(int event) {
if (event == CLOSE_EVENT) {
.....
}
}
}
InputPipe pipeIn = pipe.createInputPipe(pipeAdv, myListener);
*
Method Summary |
void |
pipeEvent(int event)
Called for each pipe message event that occurs. |
pipeEvent
public void pipeEvent(int event)
- Called for each pipe message event that occurs.
- Parameters:
event
- The event being received.