Class Ctx
java.lang.Object
zmq.Ctx
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckTag()Deprecated.booleancloseSelector(Selector selector) createSocket(int type) errno()intget(int option) booleanisActive()booleanset(int option, int optval) voidInPoller.run(), some non-fatal exceptions can be thrown.voidSet the handler invoked when aPollerabruptly terminates due to an uncaught exception.void
-
Constructor Details
-
Ctx
public Ctx()
-
-
Method Details
-
isActive
public boolean isActive()- Returns:
- false if
terminate()terminate() has been called.
-
checkTag
Deprecated.useisActive()instead- Returns:
- false if
terminate()terminate() has been called.
-
terminate
public void terminate() -
setUncaughtExceptionHandler
Set the handler invoked when aPollerabruptly terminates due to an uncaught exception.It default to the value of
Thread.getDefaultUncaughtExceptionHandler()- Parameters:
handler- The object to use as this thread's uncaught exception handler. If null then this thread has no explicit handler.
-
getUncaughtExceptionHandler
- Returns:
- The handler invoked when a
Pollerabruptly terminates due to an uncaught exception.
-
setNotificationExceptionHandler
InPoller.run(), some non-fatal exceptions can be thrown. This handler will be notified, so they can be logged.Default to
Throwable.printStackTrace()- Parameters:
handler- The object to use as this thread's handler for recoverable exceptions notifications.
-
getNotificationExceptionHandler
- Returns:
- The handler invoked when a non-fatal exceptions is thrown in zmq.poll.Poller#run()
-
set
public boolean set(int option, int optval) -
get
public int get(int option) -
createSocket
-
createSelector
-
closeSelector
-
errno
-
isActive()instead