org.jafer.interfaces
Interface Connection

All Known Implementing Classes:
ZClient

public interface Connection

Methods for connecting to Z39.50 datasources

Author:
Antony Corfield; Matthew Dovey; Colin Tatham

Method Summary
 void close()
          Close connection
 int getAutoReconnect()
          Get autoconnection setting
 int getTimeout()
          Get connection timeout
 void setAutoReconnect(int autoReconnect)
          Set autoreconnect setting
 void setTimeout(int timeout)
          Set connection timeout
 

Method Detail

setTimeout

public void setTimeout(int timeout)
Set connection timeout

Parameters:
timeout - timeout in miliseconds

getTimeout

public int getTimeout()
Get connection timeout

Returns:
timeout in milliseconds

setAutoReconnect

public void setAutoReconnect(int autoReconnect)
Set autoreconnect setting

Parameters:
autoReconnect - number of times to attempt reconnection

getAutoReconnect

public int getAutoReconnect()
Get autoconnection setting

Returns:
Number of times to attempt reconnection

close

public void close()
           throws JaferException
Close connection

JaferException