|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.zap.Selector
public class Selector
| Field Summary | |
|---|---|
static int |
READ
|
static int |
WRITE
|
| Constructor Summary | |
|---|---|
Selector()
|
|
| Method Summary | |
|---|---|
int |
doPoll(int[] fds,
int key,
int timeout)
Delegates select call to unix poll function. |
void |
doRegister(int fd)
Registers pipe for polling. |
void |
doUnregister(int fd)
Unregisters pipe from polling. |
void |
register(org.mobicents.protocols.ss7.mtp.Mtp1 channel)
Register channel with this selector. |
java.util.Collection<org.mobicents.protocols.ss7.mtp.Mtp1> |
select(int key,
int timeout)
Selects channels wich are ready for specified IO operations. |
void |
unregister(org.mobicents.protocols.ss7.mtp.Mtp1 channel)
Unregister channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int READ
public static final int WRITE
| Constructor Detail |
|---|
public Selector()
| Method Detail |
|---|
public void register(org.mobicents.protocols.ss7.mtp.Mtp1 channel)
register in interface org.mobicents.protocols.ss7.mtp.ChannelSelectorchannel - the channel to register.public void unregister(org.mobicents.protocols.ss7.mtp.Mtp1 channel)
unregister in interface org.mobicents.protocols.ss7.mtp.ChannelSelectorchannel - the channel to unregister.
public java.util.Collection<org.mobicents.protocols.ss7.mtp.Mtp1> select(int key,
int timeout)
select in interface org.mobicents.protocols.ss7.mtp.ChannelSelectorkey - selection keytimeout - the time out for select.
public void doRegister(int fd)
fd - the file descriptor.public void doUnregister(int fd)
fd - the file descriptor.
public int doPoll(int[] fds,
int key,
int timeout)
fds - the list of file descriptors.key - selection key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||