org.jafer.interfaces
Interface Connection

All Known Implementing Classes:
AbstractClient, SRWClient, 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

void setTimeout(int timeout)
Set connection timeout

Parameters:
timeout - timeout in miliseconds

getTimeout

int getTimeout()
Get connection timeout

Returns:
timeout in milliseconds

setAutoReconnect

void setAutoReconnect(int autoReconnect)
Set autoreconnect setting

Parameters:
autoReconnect - number of times to attempt reconnection

getAutoReconnect

int getAutoReconnect()
Get autoconnection setting

Returns:
Number of times to attempt reconnection

close

void close()
           throws JaferException
Close connection

Throws:
JaferException