- All Known Subinterfaces:
BidirectionalConnectionByteTransceiver<INPUT,
,OUTPUT> BidirectionalConnectionTransceiver<DATA,
,INPUT, OUTPUT> BidirectionalStreamConnectionByteTransceiver
,BidirectionalStreamConnectionTransceiver<DATA>
,ByteReceiver
,BytesReceiver
,BytesTransceiver
,ByteTransceiver
,ConnectionBytesReceiver<CON>
,ConnectionBytesTransceiver<CON>
,ConnectionDatagramsReceiver<DATA,
,CON> ConnectionDatagramsTransceiver<DATA,
,CON> ConnectionShortsReceiver<CON>
,ConnectionShortsTransceiver<CON>
,DatagramReceiver<DATA>
,DatagramsReceiver<DATA>
,DatagramsTransceiver<DATA>
,DatagramTransceiver<DATA>
,InputStreamConnectionByteReceiver
,InputStreamConnectionReceiver<DATA>
,Receivable
,ShortReceiver
,ShortsReceiver
,ShortsTransceiver
,ShortTransceiver
- All Known Implementing Classes:
AbstractBytesReceiver
,AbstractDatagramsReceiver
,AbstractInputStreamByteReceiver
,AbstractInputStreamReceiver
,AbstractPrefetchInputStreamByteReceiver
,AbstractPrefetchInputStreamReceiver
,AbstractShortsReceiver
,BidirectionalStreamByteTransceiver
,BidirectionalStreamConnectionByteTransceiverImpl
,BidirectionalStreamConnectionTransceiverImpl
,BidirectionalStreamTransceiver
,ByteArrayReceiver
,BytesReceiverDecorator
,DatagramsReceiverDecorator
,InputStreamByteReceiver
,InputStreamConnectionByteReceiverImpl
,InputStreamConnectionReceiverImpl
,InputStreamReceiver
,LoopbackBytesReceiver
,LoopbackBytesTransceiver
,LoopbackDatagramsReceiver
,LoopbackDatagramsTransceiver
,LoopbackShortsReceiver
,LoopbackShortsTransceiver
,PrefetchBidirectionalStreamByteTransceiver
,PrefetchBidirectionalStreamConnectionByteTransceiver
,PrefetchBidirectionalStreamConnectionTransceiver
,PrefetchBidirectionalStreamTransceiver
,PrefetchInputStreamByteReceiver
,PrefetchInputStreamConnectionByteReceiver
,PrefetchInputStreamConnectionReceiver
,PrefetchInputStreamReceiver
,ShortArrayReceiver
,ShortsReceiverDecorator
public interface Availability
The
Availability
interface defines methods to test availability of
data.-
Method Summary
Modifier and TypeMethodDescriptionint
Determines the number of available datagram from aDatagramTransmitter
.default boolean
Determines whether a datagram is available from aDatagramTransmitter
.
-
Method Details
-
available
Determines the number of available datagram from aDatagramTransmitter
. Use theDatagramDestination
extenison'sDatagramDestination.receive()
method for retrieving available datagrams.- Returns:
- The number of datagrams ready to be retrieved .
- Throws:
IOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
hasAvailable
Determines whether a datagram is available from aDatagramTransmitter
. Use theDatagramDestination
extenison'sDatagramDestination.receive()
method for retrieving the available datagram.- Returns:
- True in case there is a datagram ready to be retrieved .
- Throws:
IOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-