You are viewing a plain text version of this content. The canonical link for it is here.
Posted to awf-commits@incubator.apache.org by sl...@apache.org on 2012/03/04 14:44:19 UTC
svn commit: r1296817 -
/incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java
Author: slemesle
Date: Sun Mar 4 14:44:18 2012
New Revision: 1296817
URL: http://svn.apache.org/viewvc?rev=1296817&view=rev
Log:
Simplify configuration
Add LoopObserver to monitor Start/Stop
Support Chunked encoding in request body
Added:
incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java
Added: incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java
URL: http://svn.apache.org/viewvc/incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java?rev=1296817&view=auto
==============================================================================
--- incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java (added)
+++ incubator/awf/trunk/awf-core/src/main/java/org/apache/awf/io/IOLoopObserver.java Sun Mar 4 14:44:18 2012
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.awf.io;
+
+/**
+ * Provide callbacks to observe IOLoop state.
+ */
+public interface IOLoopObserver {
+
+ /**
+ * This method get's called when IOLoop enters it's mainloop.
+ *
+ * @param loop
+ */
+ void onStart(IOLoop loop);
+
+ /**
+ * This callback is called by the IOLoop before terminating it's Thread.
+ * @param loop
+ */
+ void onStopped(IOLoop loop);
+
+}