Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 6363 invoked from network); 1 Mar 2010 16:51:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 16:51:58 -0000 Received: (qmail 2748 invoked by uid 500); 1 Mar 2010 16:51:57 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 2723 invoked by uid 500); 1 Mar 2010 16:51:57 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 2711 invoked by uid 99); 1 Mar 2010 16:51:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:51:57 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.163.196.105] (HELO nyx.xs4all.nl) (83.163.196.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:51:48 +0000 Received: from saturn.qcg.lan ([192.168.99.10]) by nyx.xs4all.nl with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nm8q5-00058p-FE for river-dev@incubator.apache.org; Mon, 01 Mar 2010 17:51:25 +0100 Message-ID: <4B8BF08D.6060208@qcg.nl> Date: Mon, 01 Mar 2010 17:51:25 +0100 From: Sim IJskes - QCG Organization: Quality Consultancy Group b.v. User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: river-dev@incubator.apache.org Subject: stream data Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, i've 'derived' some of the stuff i wrote for a SocketFactory replacement, and i came to the following interfaces. Any comments? public interface StreamConnectionService extends Remote { StreamData pollForInput() throws RemoteException ; void sendOutput(StreamData buf) throws RemoteException ; public void close() throws RemoteException ; } public final class StreamData implements Serializable { private byte buffer[]; public StreamData(byte[] buffer) { this.buffer = buffer; } public byte[] getBuffer() { return buffer; } } -- QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl Quality Consultancy Group b.v., Leiderdorp, Kvk Leiden: 28088397