Class RequestImpl
java.lang.Object
com.tenio.core.network.entity.protocol.implement.RequestImpl
- All Implemented Interfaces:
Request
The implementation for request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttribute
(String key) getEvent()
long
getId()
long
int
hashCode()
It is generally necessary to override the hashCode method whenever equals method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.static Request
setAttribute
(String key, Object value) setEvent
(ServerEvent event) setPriority
(RequestPriority priority) toString()
-
Method Details
-
newInstance
-
getId
public long getId() -
getAttribute
- Specified by:
getAttribute
in interfaceRequest
-
setAttribute
- Specified by:
setAttribute
in interfaceRequest
-
getSender
-
setSender
-
getPriority
- Specified by:
getPriority
in interfaceRequest
-
setPriority
- Specified by:
setPriority
in interfaceRequest
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestamp
in interfaceRequest
-
getEvent
-
setEvent
-
equals
-
hashCode
public int hashCode()It is generally necessary to override the hashCode method whenever equals method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes. -
toString
-