KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > performance > synchronous > Payload


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.remoting.performance.synchronous;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a>
13  */

14 public class Payload implements Serializable JavaDoc
15 {
16    private int callNumber = 0;
17    private Object JavaDoc payload = null;
18
19    public Payload(Object JavaDoc payload)
20    {
21       this.payload = payload;
22    }
23
24    public void setCallNumber(int callNumber)
25    {
26       this.callNumber = callNumber;
27    }
28
29    public int getCallNumber()
30    {
31       return callNumber;
32    }
33
34    public Object JavaDoc getPayload()
35    {
36       return payload;
37    }
38 }
Popular Tags