001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.poller;
016    
017    import com.liferay.portal.kernel.poller.PollerRequest;
018    import com.liferay.portal.kernel.poller.PollerResponse;
019    
020    /**
021     * @author Edward Han
022     */
023    public class PollerRequestResponsePair {
024    
025            public PollerRequestResponsePair(PollerRequest pollerRequest) {
026                    _pollerRequest = pollerRequest;
027            }
028    
029            public PollerRequestResponsePair(
030                    PollerRequest pollerRequest, PollerResponse pollerResponse) {
031    
032                    _pollerRequest = pollerRequest;
033                    _pollerResponse = pollerResponse;
034            }
035    
036            public PollerRequest getPollerRequest() {
037                    return _pollerRequest;
038            }
039    
040            public PollerResponse getPollerResponse() {
041                    return _pollerResponse;
042            }
043    
044            public void setPollerRequest(PollerRequest pollerRequest) {
045                    _pollerRequest = pollerRequest;
046            }
047    
048            public void setPollerResponse(PollerResponse pollerResponse) {
049                    _pollerResponse = pollerResponse;
050            }
051    
052            private PollerRequest _pollerRequest;
053            private PollerResponse _pollerResponse;
054    
055    }