Package eu.miltema.slimweb.push
Interface ServerPush
-
public interface ServerPushA component implements this interface to receive push notifications
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpushStarted(PushHandle pushHandle, java.util.Map<java.lang.String,java.lang.String> parameters)Called when client has started a push/websocket connectionvoidpushTerminated(PushHandle pushHandle)Called when client has terminated push/websocket connection
-
-
-
Method Detail
-
pushStarted
void pushStarted(PushHandle pushHandle, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
Called when client has started a push/websocket connection- Parameters:
pushHandle- push handleparameters- parameters from URL- Throws:
java.lang.Exception- when anything goes wrong in component
-
pushTerminated
void pushTerminated(PushHandle pushHandle) throws java.lang.Exception
Called when client has terminated push/websocket connection- Parameters:
pushHandle- push handle- Throws:
java.lang.Exception- when anything goes wrong in component
-
-