public final class ServerEvent extends Object
ServerChannel
event.Modifier and Type | Field and Description |
---|---|
static int |
INIT
Successfully connected to NetServer [8].
|
static int |
MULTICAST
Received a multicast message [9].
|
static int |
OPERATOR_REPLY
Received a reply message of an operator transaction [10].
|
static int |
QUIT
Received a quit (halt) command [2].
|
static int |
REINIT
Received a reinitialize command [6].
|
static int |
REPLY
Received a reply message of an asynchronous transaction [5].
|
static int |
RUNNABLE
A runnable for asynchronous execution has been submitted [51].
|
static int |
TIMEOUT
Timeout expired while waiting for an event [11].
|
static int |
TIMER
The server's timer interval period expired [50].
|
static int |
TRANSACTION
Received a transaction message [7].
|
Constructor and Description |
---|
ServerEvent()
Creates a new
ServerEvent instance. |
Modifier and Type | Method and Description |
---|---|
Message |
getMessage()
Returns the message of this
ServerEvent . |
String |
getName()
Returns the name of the transaction or multicast message.
|
Runnable |
getRunnable()
Returns the runnable of this
ServerEvent . |
int |
getType()
Returns the type of this
ServerEvent . |
public static final int QUIT
public static final int REPLY
public static final int REINIT
public static final int TRANSACTION
public static final int INIT
public static final int MULTICAST
public static final int OPERATOR_REPLY
public static final int TIMEOUT
public static final int TIMER
public static final int RUNNABLE
public int getType()
ServerEvent
.ServerEvent
.INIT
,
OPERATOR_REPLY
,
QUIT
,
REINIT
,
REPLY
,
RUNNABLE
,
TIMEOUT
,
TIMER
,
TRANSACTION
,
MULTICAST
public Message getMessage()
ServerEvent
. Returns null
if
the event does not have a message.ServerEvent
.public String getName()
null
if the type of the event is neither TRANSACTION
nor MULTICAST
.public Runnable getRunnable()
ServerEvent
.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.