xmlBlaster 1.6.2 client API

org.xmlBlaster.client
Interface I_ConnectionHandler

All Known Subinterfaces:
I_XmlBlasterAccess
All Known Implementing Classes:
XmlBlasterAccess

public interface I_ConnectionHandler

Access the connection handler to access connection status information or manipulate queued messages.

Author:
xmlBlaster@marcelruff.info

Method Summary
 I_Queue getQueue()
           
 ConnectionStateEnum getState()
          Get the connection state, usable for nice logging like this:
con.getState().toString()
 boolean isAlive()
           
 boolean isDead()
           
 boolean isPolling()
           
 

Method Detail

getQueue

public I_Queue getQueue()
Returns:
The queue used to store tailback messages.

getState

public ConnectionStateEnum getState()
Get the connection state, usable for nice logging like this:
con.getState().toString()

Returns:
"UNDEF", "ALIVE", "POLLING", "DEAD"

isAlive

public boolean isAlive()
Returns:
true if the connection to xmlBlaster is operational

isPolling

public boolean isPolling()
Returns:
true if we are polling for the server

isDead

public boolean isDead()
Returns:
true if we have definitely lost the connection to xmlBlaster and gave up

xmlBlaster 1.6.2 client API

Copyright © 1999-2007 The xmlBlaster.org contributers.