blob: 973f1d008f3f9697f1c2255213da80b44f202e7a [file] [log] [blame]
Mark Slee7eb0d632007-03-01 00:00:27 +00001// Copyright (c) 2006- Facebook
2// Distributed under the Thrift Software License
3//
4// See accompanying file LICENSE or visit the Thrift site at:
5// http://developers.facebook.com/thrift/
6
Mark Slee83c52a82006-06-07 06:51:18 +00007package com.facebook.thrift;
8
Mark Slee456b7a82006-10-25 20:53:37 +00009import com.facebook.thrift.protocol.TProtocol;
Mark Slee83c52a82006-06-07 06:51:18 +000010
11/**
12 * A processor is a generic object which operates upon an input stream and
13 * writes to some output stream.
14 *
15 * @author Mark Slee <mcslee@facebook.com>
16 */
17public interface TProcessor {
Mark Slee456b7a82006-10-25 20:53:37 +000018 public boolean process(TProtocol in, TProtocol out)
Mark Slee83c52a82006-06-07 06:51:18 +000019 throws TException;
20}