1
%%------------------------------------------------------------------------
5
%% Copyright Ericsson AB 2001-2010. All Rights Reserved.
7
%% The contents of this file are subject to the Erlang Public License,
8
%% Version 1.1, (the "License"); you may not use this file except in
9
%% compliance with the License. You should have received a copy of the
10
%% Erlang Public License along with this software. If not, it can be
11
%% retrieved online at http://www.erlang.org/.
13
%% Software distributed under the License is distributed on an "AS IS"
14
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15
%% the License for the specific language governing rights and limitations
21
%%------------------------------------------------------------------------
22
%% Description: a very simple implementation of PullConsumer interface
23
%%------------------------------------------------------------------------
24
-module(event_test_PullC_impl).
26
-export([init/1, terminate/2, disconnect_pull_consumer/1, do_pull/1, do_try_pull/1]).
31
terminate(_From, _Reason) ->
34
disconnect_pull_consumer(Proxy) ->
35
io:format("event_test_PullC terminates~n",[]),
36
{stop, normal, ok, Proxy}.
39
{reply, 'CosEventComm_PullSupplier':pull(Proxy), Proxy}.
42
{reply, 'CosEventComm_PullSupplier':try_pull(Proxy), Proxy}.