Package io.sisu.nng.aio
Interface AioProxy
-
- All Known Implementing Classes:
Aio
public interface AioProxy
Interface for theAio
API primarily to be used by anAioCallback
. Each of these methods should correspond to those commonly used byAio
callbacks in NNG programs. In practice, those usingContext
will use aContextProxy
when writing event handlers and not call methods on theAioProxy
directly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertSuccessful()
boolean
begin()
void
finish(int error)
Message
getMessage()
void
receive(Socket socket)
void
send(Socket socket)
void
setMessage(Message msg)
void
sleep(int millis)
-
-
-
Method Detail
-
setMessage
void setMessage(Message msg)
-
getMessage
Message getMessage()
-
assertSuccessful
void assertSuccessful() throws NngException
- Throws:
NngException
-
sleep
void sleep(int millis)
-
begin
boolean begin()
-
finish
void finish(int error)
-
send
void send(Socket socket)
-
receive
void receive(Socket socket)
-
-