Ice.EndpointInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.5
//
//
//
// Generated from file `Endpoint.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
/**
* Base class providing access to the endpoint details.
*
**/
public abstract class EndpointInfo implements java.lang.Cloneable
{
/**
* Returns the type of the endpoint.
*
* @return The endpoint type.
**/
public abstract short type();
/**
* Returns true if this endpoint is a datagram endpoint.
*
* @return True for a datagram endpoint.
**/
public abstract boolean datagram();
/**
* Returns true if this endpoint is a secure endpoint.
*
* @return True for a secure endpoint.
**/
public abstract boolean secure();
public EndpointInfo()
{
}
public EndpointInfo(int timeout, boolean compress)
{
this.timeout = timeout;
this.compress = compress;
}
/**
* The timeout for the endpoint in milliseconds. 0 means
* non-blocking, -1 means no timeout.
*
**/
public int timeout;
/**
* Specifies whether or not compression should be used if
* available when using this endpoint.
*
**/
public boolean compress;
public EndpointInfo
clone()
{
EndpointInfo c = null;
try
{
c = (EndpointInfo)super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return c;
}
public static final long serialVersionUID = 1012637958276705454L;
}