|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingResource
MessagingResource - A messaging resource which is connectable, closeable and pingable.
| Method Summary | |
|---|---|
boolean |
cacheable()
Indicates if this resource may be cached (for a little amount of time) once opened. |
void |
close()
Closes this resource. |
void |
connect()
Opens this resource. |
boolean |
isConnected()
Checks if this connection is currently connected. |
boolean |
ping()
Pings this resource to check if it can be opened and and immediately closes connection. |
| Method Detail |
|---|
void connect()
throws MessagingException
MessagingException - If the resource could not be opened for various reasonsboolean isConnected()
true if connected; otherwise falsevoid close()
boolean ping()
throws MessagingException
true if a connection can be established; otherwise false
MessagingException - If the ping failsboolean cacheable()
true if this resource may be cached; otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||