- All Known Subinterfaces:
Endpoint
- All Known Implementing Classes:
DefaultEndpoint,PubSubClusterEndpoint,PubSubEndpoint
public interface PushHandler
A handler object that provides access to
PushListener.- Since:
- 6.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description voidaddListener(PushListener listener)Add a newlistener.Collection<PushListener>getPushListeners()Returns a collection ofPushListener.voidremoveListener(PushListener listener)Remove an existinglistener.
-
Method Details
-
addListener
Add a newlistener.- Parameters:
listener- the listener, must not benull.
-
removeListener
Remove an existinglistener.- Parameters:
listener- the listener, must not benull.
-
getPushListeners
Collection<PushListener> getPushListeners()Returns a collection ofPushListener.- Returns:
- the collection of listeners.
-