javax.websocket
Annotation Type WebSocketClose


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface WebSocketClose

This method level annotation can be used to decorate a Java method that wishes to be called when a web socket session has closed.


The method may only take the following parameters:-

- optional Session parameter
- optional CloseReason parameter
- Zero to n String parameters annotated with the @WebSocketPathParam annotation.
in any order.

Since:
Draft 002
Author:
dannycoward




Copyright © 2012 Oracle and/or its affiliates. All rights reserved.