org.jboss.resteasy.example.pubsub

## Class Subscriber

- java.lang.Object
- - org.jboss.resteasy.example.pubsub.Subscriber

-     public class Subscriber
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Subscriber.Entry`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected LinkedList<Subscriber.Entry>` | `queue`
    `protected AsyncResponse` | `response`
    `protected int` | `size`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Subscriber(int size)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `poll(AsyncResponse response)`
    `void` | `post(MediaType type, byte[] content)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### size

          protected int size

    - #### queue

          protected LinkedList<Subscriber.Entry> queue

    - #### response

          protected AsyncResponse response

  - ### Constructor Detail

    - #### Subscriber

          public Subscriber(int size)

  - ### Method Detail

    - #### post

          public void post(MediaType type,
                  byte[] content)

    - #### poll

          public void poll(AsyncResponse response)

Copyright © 2014. All Rights Reserved.