All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.starlight.intrepid.message.PingIMessage Maven / Gradle / Ivy

Go to download

A replacement for Java RMI (Remote Method Invocation) that allows for simpler and more transparent usage with more flexible control over session and security.

There is a newer version: 1.6.8
Show newest version
package com.starlight.intrepid.message;

/**
 *
 */
public class PingIMessage implements IMessage {
	private final short sequence_number;

	public PingIMessage( short sequence_number ) {
		this.sequence_number = sequence_number;
	}

	@Override
	public IMessageType getType() {
		return IMessageType.PING;
	}


	public short getSequenceNumber() {
		return sequence_number;
	}



	@Override
	public boolean equals( Object o ) {
		if ( this == o ) return true;
		if ( o == null || getClass() != o.getClass() ) return false;

		PingIMessage that = ( PingIMessage ) o;

		return sequence_number == that.sequence_number;

	}

	@Override
	public int hashCode() {
		return ( int ) sequence_number;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy