|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PipeStateListener
The listener interface for receiving JxtaBiDiPipe
events.
The following example illustrates how to implement a PipeStateListener
:
PipeStateListener myListener = new PipeStateListener() { public void pipeEvent(int event) { if (event == PipeStateListener.PIPE_CLOSED_EVENT) { ..... } } } InputPipe pipeIn = pipe.createInputPipe(pipeAdv, myListener);
Field Summary | |
---|---|
static int |
PIPE_CLOSED_EVENT
Pipe close Event |
static int |
PIPE_FAILED_EVENT
Pipe failed Event |
static int |
PIPE_OPENED_EVENT
Pipe opened Event |
Method Summary | |
---|---|
void |
stateEvent(Object source,
int event)
Called for each pipe mode event that occurs. |
Field Detail |
---|
static final int PIPE_CLOSED_EVENT
static final int PIPE_OPENED_EVENT
static final int PIPE_FAILED_EVENT
Method Detail |
---|
void stateEvent(Object source, int event)
source
- the source of the event (JxtaBiDiPipe)event
- The event being received.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |