diff --git a/src/dorkbox/objectPool/nonBlocking/BoundedNonBlockingPool.kt b/src/dorkbox/objectPool/nonBlocking/BoundedNonBlockingPool.kt index 5b3717a..c045bfb 100755 --- a/src/dorkbox/objectPool/nonBlocking/BoundedNonBlockingPool.kt +++ b/src/dorkbox/objectPool/nonBlocking/BoundedNonBlockingPool.kt @@ -16,6 +16,7 @@ package dorkbox.objectPool.nonBlocking import dorkbox.objectPool.BoundedPoolObject +import dorkbox.objectPool.ObjectPool import java.util.* import java.util.concurrent.atomic.* @@ -26,7 +27,7 @@ import java.util.concurrent.atomic.* * The items added to pool will never expire or be automatically garbage collected. * The items not added back to the pool will be garbage collected * - * See [ObjectPool.NonBlockingSoftReference] for pooled objects that will expire/GC as needed + * See [ObjectPool.nonBlockingSoftReference] for pooled objects that will expire/GC as needed * * @author dorkbox, llc; Abinav Janakiraman */ diff --git a/src/dorkbox/objectPool/nonBlocking/NonBlockingPool.kt b/src/dorkbox/objectPool/nonBlocking/NonBlockingPool.kt index 443989f..53cb705 100755 --- a/src/dorkbox/objectPool/nonBlocking/NonBlockingPool.kt +++ b/src/dorkbox/objectPool/nonBlocking/NonBlockingPool.kt @@ -19,7 +19,6 @@ import dorkbox.objectPool.ObjectPool import dorkbox.objectPool.Pool import dorkbox.objectPool.PoolObject import java.util.* -import java.util.concurrent.ConcurrentLinkedQueue /** * A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. diff --git a/src/dorkbox/objectPool/suspending/ChannelQueue.kt b/src/dorkbox/objectPool/suspending/ChannelQueue.kt index ebf3f83..8e40b5d 100644 --- a/src/dorkbox/objectPool/suspending/ChannelQueue.kt +++ b/src/dorkbox/objectPool/suspending/ChannelQueue.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2022 dorkbox, llc + * + * Licensed 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 dorkbox.objectPool.suspending import kotlinx.coroutines.channels.Channel diff --git a/src/dorkbox/objectPool/suspending/SuspendingQueue.kt b/src/dorkbox/objectPool/suspending/SuspendingQueue.kt index e4cb0bd..b541ba3 100644 --- a/src/dorkbox/objectPool/suspending/SuspendingQueue.kt +++ b/src/dorkbox/objectPool/suspending/SuspendingQueue.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2022 dorkbox, llc + * + * Licensed 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 dorkbox.objectPool.suspending import java.util.Collection