Messenger.FactoryCUMULATIVE| Constructor and Description |
|---|
MessengerImpl()
Deprecated.
This constructor's visibility will be reduced to the default scope in a future release.
Client code outside this module should use a
MessengerFactory instead |
MessengerImpl(java.lang.String name)
Deprecated.
This constructor's visibility will be reduced to the default scope in a future release.
Client code outside this module should use a
MessengerFactory instead |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Tracker tracker,
int flags)
Accepts messages retrieved from the incoming message queue.
|
Message |
get()
Returns the message from the head of the incoming message
queue.
|
java.lang.String |
getCertificate()
Get the path to the certificate file.
|
int |
getIncomingWindow() |
int |
getOutgoingWindow() |
java.lang.String |
getPassword()
Get the password for the priate key file.
|
java.lang.String |
getPrivateKey()
Get the path to the private key file.
|
Status |
getStatus(Tracker tracker)
Gets the last known remote state of the delivery associated
with the given tracker.
|
long |
getTimeout() |
java.lang.String |
getTrustedCertificates()
Get the path to the trusted certificate database.
|
int |
incoming()
Returns a count of the messages available on the incoming
queue.
|
Tracker |
incomingTracker()
Returns a token which can be used to accept or reject the
message returned in the previous get() call.
|
void |
interrupt() |
boolean |
isBlocking() |
int |
outgoing()
Returns a count of the messages currently on the outgoing queue
(i.e.
|
Tracker |
outgoingTracker()
Returns a token which can be used to track the status of the
message of the previous put() call.
|
void |
put(Message m)
Places the content contained in the message onto the outgoing
queue of the Messenger.
|
int |
receiving()
Returns the capacity of the incoming message queue of
messenger.
|
void |
recv()
Receives an arbitrary number of messages into the
incoming queue of the Messenger.
|
void |
recv(int n)
Receives up to the specified number of messages into the
incoming queue of the Messenger.
|
void |
reject(Tracker tracker,
int flags)
Rejects messages retrieved from the incoming message queue.
|
void |
rewrite(java.lang.String pattern,
java.lang.String address) |
void |
route(java.lang.String pattern,
java.lang.String address) |
void |
send()
Blocks until the outgoing queue is empty and, in the event that
an outgoing window has been set, until the messages in that
window have been received by the target to which they were
sent, or the operation times out.
|
void |
send(int n) |
void |
setBlocking(boolean b) |
void |
setCertificate(java.lang.String certificate)
Set the path to the certificate file.
|
void |
setIncomingWindow(int window) |
void |
setOutgoingWindow(int window) |
void |
setPassword(java.lang.String password)
Set the password for private key file.
|
void |
setPrivateKey(java.lang.String privateKey)
Set the path to private key file.
|
void |
setTimeout(long timeInMillis) |
void |
settle(Tracker tracker,
int flags) |
void |
setTrustedCertificates(java.lang.String trusted)
Set the path to the trusted certificate database.
|
void |
start()
Transitions the Messenger to an active state.
|
void |
stop()
Transitions the Messenger to an inactive state.
|
boolean |
stopped() |
void |
subscribe(java.lang.String source)
Subscribes the Messenger to messages originating from the
specified source.
|
java.lang.String |
toString() |
boolean |
work(long timeout)
Sends or receives any outstanding messages queued for a
messenger.
|
@Deprecated public MessengerImpl()
MessengerFactory instead@Deprecated public MessengerImpl(java.lang.String name)
MessengerFactory insteadpublic void setTimeout(long timeInMillis)
setTimeout in interface Messengerpublic long getTimeout()
getTimeout in interface Messengerpublic boolean isBlocking()
isBlocking in interface Messengerpublic void setBlocking(boolean b)
setBlocking in interface Messengerpublic void setCertificate(java.lang.String certificate)
MessengersetCertificate in interface Messengerpublic java.lang.String getCertificate()
MessengergetCertificate in interface Messengerpublic void setPrivateKey(java.lang.String privateKey)
MessengersetPrivateKey in interface Messengerpublic java.lang.String getPrivateKey()
MessengergetPrivateKey in interface Messengerpublic void setPassword(java.lang.String password)
MessengersetPassword in interface Messengerpublic java.lang.String getPassword()
MessengergetPassword in interface Messengerpublic void setTrustedCertificates(java.lang.String trusted)
MessengersetTrustedCertificates in interface Messengerpublic java.lang.String getTrustedCertificates()
MessengergetTrustedCertificates in interface Messengerpublic void start()
throws java.io.IOException
Messengerpublic void stop()
Messengerpublic boolean work(long timeout)
throws TimeoutException
Messengerwork in interface MessengerTimeoutExceptionpublic void put(Message m) throws MessengerException
Messengerput in interface MessengerMessengerExceptionpublic void send()
throws TimeoutException
Messengersend in interface MessengerTimeoutExceptionpublic void send(int n)
throws TimeoutException
send in interface MessengerTimeoutExceptionpublic void recv(int n)
throws TimeoutException
Messengerrecv in interface MessengerTimeoutExceptionpublic void recv()
throws TimeoutException
Messengerrecv in interface MessengerTimeoutExceptionpublic int receiving()
Messengerpublic Message get()
Messengerpublic void subscribe(java.lang.String source)
throws MessengerException
Messengersubscribe in interface MessengerMessengerExceptionpublic int outgoing()
Messengerpublic int incoming()
Messengerpublic int getIncomingWindow()
getIncomingWindow in interface Messengerpublic void setIncomingWindow(int window)
setIncomingWindow in interface Messengerpublic int getOutgoingWindow()
getOutgoingWindow in interface Messengerpublic void setOutgoingWindow(int window)
setOutgoingWindow in interface Messengerpublic Tracker incomingTracker()
MessengerincomingTracker in interface Messengerpublic Tracker outgoingTracker()
MessengeroutgoingTracker in interface Messengerpublic void reject(Tracker tracker, int flags)
Messengerpublic void accept(Tracker tracker, int flags)
Messengerpublic Status getStatus(Tracker tracker)
Messengerpublic void route(java.lang.String pattern,
java.lang.String address)
public void rewrite(java.lang.String pattern,
java.lang.String address)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 FuseSource, Corp.. All Rights Reserved.