Package org.glassfish.tyrus.client
Class RetryAfterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.tyrus.core.HandshakeException
-
- org.glassfish.tyrus.client.RetryAfterException
-
- All Implemented Interfaces:
java.io.Serializable
public class RetryAfterException extends org.glassfish.tyrus.core.HandshakeExceptionThis exception is set as a cause ofDeploymentExceptionthrown fromWebSocketContainer.connectToServer(...) when HTTP response status code503 - Service Unavailableis received.- Author:
- Ondrej Kosatka
- See Also:
ClientManager.ReconnectHandler,ClientProperties.RETRY_AFTER_SERVICE_UNAVAILABLE, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryAfterException(java.lang.String message, java.lang.Long delay)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetDelay()Get a delay specified in "Retry-After" response header in seconds.
-
-
-
Constructor Detail
-
RetryAfterException
public RetryAfterException(java.lang.String message, java.lang.Long delay)Constructor.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.delay- a delay to the time received handshake response in header.
-
-