org.jboss.aerogear.simplepush.protocol.impl
Class AckImpl
java.lang.Object
org.jboss.aerogear.simplepush.protocol.impl.AckImpl
- All Implemented Interfaces:
- Ack
public class AckImpl
- extends Object
- implements Ack
Concrete Ack implementation.
This implementation considers only the channelId for hashcode/equals contract. If required
to take the version into consideration an manual call of getVersion is required.
AckImpl
public AckImpl(String channelId,
long version)
getChannelId
public String getChannelId()
- Description copied from interface:
Ack
- Returns the channel id for this ack.
- Specified by:
getChannelId in interface Ack
- Returns:
String the channel id for this ack.
getVersion
public long getVersion()
- Description copied from interface:
Ack
- Returns the version for this ack.
- Specified by:
getVersion in interface Ack
- Returns:
String the version for this ack.
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.