Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

ExternalEntry, com.gigaspaces.internal.* and the way forward

We've found some code that uses ExternalEntry. We'd have to perform a complete audit to determine if it's still actually in use, but we're considering our possible courses of action if we have to replace it. In the documentation for ExternalEntry it indicates that its functionality with regards to id-based queries can be replaced by readByID, etc. and with regards to extended queries can be replaced with SQLQuery; for weak-type entries it recommends using SpaceDocument. There is only one problem with that; in fact ExternalEntry is an overloaded object as it was sometimes used to hold lists of Ids.

The simplest way forward would appear to be use IEntryPacket or one of the other interfaces, but all of these are internal and thus should perhaps not be used with a view to the future. What would you suggest? One of our thoughts is to create a SpaceDocumentEntry class that provides both weak types as well as an internal list of Ids when that type of functionality was required, but there may be other options and we're curious what your thoughts on the matter are.



asked 2018-02-21 10:23:39 -0500

jb.ext gravatar image

updated 2018-02-22 02:46:13 -0500

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Hi, IEntryPacket is intended to internal replication, You can extend SpaceDocument to have ids fixed property If this is something you are going to keep in space, What are you currently using the ExternalEntry ids for?

answered 2018-02-22 04:15:02 -0500

Ester gravatar image
edit flag offensive delete link more



Among other things, we need a replacement for this: public ExternalEntry(String[] multipleUIDs), even if it's only used to log. In other words, sometimes it was being used simply as a container.

The basic interest is to modify as few things as possible, and thus we've created a class that extends SpaceDocument, implements IGSEntry, and can be instantiated from either IGSEntry or IEntryPacket.



jb.ext gravatar imagejb.ext ( 2018-02-22 05:54:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-02-21 10:23:39 -0500

Seen: 128 times

Last updated: Feb 22 '18