cloudfoundry-community / java-nats

NATS Client for Java
Apache License 2.0
51 stars 33 forks source link

Provide better support for managing connection status #4

Closed mheath closed 12 years ago

mheath commented 12 years ago

The Callback interface lets the user know if Nats has opened or closed a connection and if a connection attempt to a server failed. We should move this functionality into a ConnectionStatus object that has more utility methods for dealing with whether or not a connection has been established as well as which connection is the active one.