com.pusher.client.connection.ConnectionStateChange.html Maven / Gradle / Ivy
ConnectionStateChange (Pusher Java Websocket API)
com.pusher.client.connection
Class ConnectionStateChange
- java.lang.Object
-
- com.pusher.client.connection.ConnectionStateChange
-
public class ConnectionStateChange
extends java.lang.Object
Represents a change in connection state.
-
-
Constructor Summary
Constructors
Constructor and Description
ConnectionStateChange(ConnectionState previousState,
ConnectionState currentState)
Used within the library to create a connection state change.
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
boolean
equals(java.lang.Object obj)
ConnectionState
getCurrentState()
The current connection state.
ConnectionState
getPreviousState()
The previous connections state.
int
hashCode()
-
-
Constructor Detail
-
ConnectionStateChange
public ConnectionStateChange(ConnectionState previousState,
ConnectionState currentState)
Used within the library to create a connection state change. Not be used
used as part of the API.
- Parameters:
previousState
- The previous connection state
currentState
- The current connection state
-
Method Detail
-
getPreviousState
public ConnectionState getPreviousState()
The previous connections state. The state the connection has transitioned
from.
- Returns:
- The previous connection state
-
getCurrentState
public ConnectionState getCurrentState()
The current connection state. The state the connection has transitioned
to.
- Returns:
- The current connection state
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
© 2015 - 2025 Weber Informatics LLC | Privacy Policy