You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by el...@apache.org on 2012/08/17 17:59:13 UTC
svn commit: r1374336 -
/labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java
Author: elecharny
Date: Fri Aug 17 15:59:12 2012
New Revision: 1374336
URL: http://svn.apache.org/viewvc?rev=1374336&view=rev
Log:
Added the poison pill used to stop the journal thread
Added:
labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java
Added: labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java
URL: http://svn.apache.org/viewvc/labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java?rev=1374336&view=auto
==============================================================================
--- labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java (added)
+++ labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/PoisonPill.java Fri Aug 17 15:59:12 2012
@@ -0,0 +1,44 @@
+/*
+ * 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.mavibot.btree;
+
+
+/**
+ * This is special class which is injected into the journal queue to tell
+ * the journal thread that it should stop.
+ *
+ * @author <a href="mailto:labs@labs.apache.org">Mavibot labs Project</a>
+ *
+ * @param <K> The key type
+ * @param <V> The value type
+ */
+public class PoisonPill<K, V> extends Modification<K, V>
+{
+ /**
+ * Create a new PoisonPill instance.
+ *
+ * @param key The key being added
+ * @param value The value being added
+ */
+ public PoisonPill()
+ {
+ super( null, null );
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org