2
* Copyright (C) 2009 by Eric Herman <eric@freesa.org>
3
* Copyright (C) 2009 by Robert Stewart <robert@wombatnation.com>
4
* Use and distribution licensed under the
5
* GNU Lesser General Public License (LGPL) version 2.1.
6
* See the COPYING file in the parent directory for full text.
10
import org.gearman.common.GearmanPacket;
11
import org.gearman.util.IORuntimeException;
14
* Objects that implement this interface manage a connection to a Gearman job
17
public interface PacketConnection extends Cloneable {
20
* Open a new connection to a job server.
25
* Close the current connection, if any, to a job server.
30
* Writes a {@link Packet} to a job server.
33
* Packet to send to job server
35
void write(GearmanPacket request);
38
* Reads a Packet from a job server.
41
* @throws IORuntimeException