public interface TransportIntf extends FrameworkIntf
Queue is used for internal memory queue.
CATEGROY_ADAPTER, CATEGROY_APP, CATEGROY_DB_CON, CATEGROY_DB_POOL, CATEGROY_ENGINE, CATEGROY_MODULE, CATEGROY_POOL_MGR, CATEGROY_QUEUE, CATEGROY_THREAD_MGR, CATEGROY_WORKER, COMMAND_DEREGISTER_KEY, COMMAND_PAUSE, COMMAND_REGISTER_KEY, COMMAND_RESTART, COMMAND_SHUTDOWN, COMMAND_START, COMMAND_STOP, FLAG_FALSE, FLAG_TRUE, PARAM_JVM_STR, PARAM_JVMID_STR, PARAM_SERVERNAME_STR, PARAM_SERVICEACTIVE_STR, PARAM_SERVICECATAGORY_STR, PARAM_SERVICENAME_STR, PARAM_SERVICERUNNING_STR, TYPE_CLUSTER, TYPE_DISPLAY_STR, TYPE_EVENT, TYPE_JVM, TYPE_JVM_STR, TYPE_MAX, TYPE_SERVER, TYPE_SERVICE| Modifier and Type | Method and Description |
|---|---|
void |
addMsg(MessageIntf aMsg)
Synchronized - Add a new Message object to the queue
|
void |
addTransport(TransportIntf aTransport)
Synchronized - Will add a new Writer to the Queue
|
void |
close()
Will remove all messages from the queue and remove the queue
|
MessageIntf |
getMsg()
Synchronized - Will retrieve the next message from the queue
note: This call will block until a message is received
|
MessageIntf |
getMsgNoWait()
Will retrieve the next message from the queue
note: This call will NOT BLOCK if not message returns null
|
String |
getTransportName()
Returns the Queue Reference Name
|
int |
getUserHashCode() |
void |
init(MessageIntf Msg) |
void |
initTransport(Map<String,String> aDataMap,
ServicesIntf aService)
This method will initialize the internal parameters.
|
boolean |
isListener() |
boolean |
isReader() |
boolean |
isWriter() |
boolean |
processMsgListner(MessageIntf aMsg) |
MessageIntf |
readMsg() |
MessageIntf |
readMsg(long aTimeout) |
void |
removeTransport(TransportIntf aTransport)
Synchronized - Will remove a Reader from the Queue
|
void |
setListener(boolean aFlag) |
void |
setReader(boolean aFlag) |
void |
setWriter(boolean aFlag) |
int |
size()
Synchronized - Will return the number of messages left in the Queue
|
addInProcess, addTotalErrorNumber, addTotalMsgNumber, addTotalProcessed, deRegister, doEventMessage, doMessage, getInProcess, getJvmId, getJvmService, getName, getStats, getTotalErrorNumber, getTotalMsgNumber, getTotalProcessed, initMessage, isActive, isRunning, register, resetTotals, setActive, setRunning, subtractInProcessvoid initTransport(Map<String,String> aDataMap, ServicesIntf aService)
aDataMap - dataaService - servicevoid init(MessageIntf Msg)
int getUserHashCode()
String getTransportName()
void addMsg(MessageIntf aMsg) throws Exception
aMsg - Object new messageException - exMessageIntf getMsg() throws Exception
Exception - exMessageIntf getMsgNoWait() throws Exception
Exception - exMessageIntf readMsg() throws Exception
ExceptionMessageIntf readMsg(long aTimeout) throws Exception
Exceptionint size()
void close()
void addTransport(TransportIntf aTransport)
aTransport - QueueWriter New queue writer objectvoid removeTransport(TransportIntf aTransport)
aTransport - QueueReader Queue reader objectboolean processMsgListner(MessageIntf aMsg)
boolean isReader()
void setReader(boolean aFlag)
boolean isWriter()
void setWriter(boolean aFlag)
boolean isListener()
void setListener(boolean aFlag)
Copyright © 2020. All rights reserved.