Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.discovery
Class UnicastSocketTimeout

    java.lang.Object
      com.sun.jini.discovery.UnicastSocketTimeout

All Implemented Interfaces:
  InvocationConstraint, Serializable

public final class UnicastSocketTimeout
extends Object
implements InvocationConstraint, Serializable

Represents a constraint on the timeout set on sockets used for unicast discovery. Lookup services and discovery clients can use this constraint to specify the maximum length of time that reads of unicast discovery data will block.

Since:
  2.0
See Also:
  Serialized Form

Constructor Summary
`UnicastSocketTimeout(int timeout)` Creates a `UnicastSocketTimeout` constraint for the given timeout.

Method Summary
`boolean` | `equals(Object obj)`
`int` | `getTimeout()` Returns the socket timeout.
`int` | `hashCode()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### UnicastSocketTimeout

    public UnicastSocketTimeout(int timeout)

  Creates a `UnicastSocketTimeout` constraint for the given timeout.

Parameters:
  `timeout` - the socket timeout
Throws:
  `IllegalArgumentException` - if the given timeout is negative

Method Detail

### getTimeout

    public int getTimeout()

  Returns the socket timeout.

  Returns:
    the socket timeout

### hashCode

    public int hashCode()

### equals

    public boolean equals(Object obj)

### toString

    public String toString()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved